package com.hiabr.iep.admin;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @Description 管理后台用户服务启动类
 * @Author chenxudong
 * @Date 2023/6/15 6:24 下午
 */
@EnableScheduling
@EnableDiscoveryClient
@MapperScan(basePackages = {"com.hiabr.iep.admin.mapper"})
@ServletComponentScan(basePackages = {"com.hiabr.iep.common.web"})
@EnableFeignClients(basePackages = {"com.hiabr.iep.**.feign"})
@EnableTransactionManagement
@SpringBootApplication(scanBasePackages = {"com.hiabr.iep.admin", "com.hiabr.iep.common"})
public class AdminApplication {

    public static void main(String[] args) {
        SpringApplication.run(AdminApplication.class, args);
    }
}
